{php include wl_template('common/header');}
<script type="text/javascript" src="{URL_WEB_JS}diyarea.js"></script>
<ul class="nav nav-tabs" id="myTab">
    <li class="active" ><a href="javascript:;">认证信息</a></li>
</ul>
<div class="app-content">
    <div class="app-form">
        <form action="" method="post" class="form-horizontal form form-validate">
            <div class="tab-content">
                <div class="tab-pane  active" id="tab_rush">
                    {if $attest['type'] == 1}
                    <div class="form-group">
                        <label class="col-sm-2 control-label">姓名<span style="color: orangered;">*</span></label>
                        <div class="col-sm-6 col-xs-6">
                            <input type="text" name="data[subjectname]" class="form-control" value="{$attest['subjectname']}" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">手机号<span style="color: orangered;">*</span></label>
                        <div class="col-sm-6 col-xs-6">
                            <input type="text" name="data[cardnum]" class="form-control" value="{$attest['cardnum']}" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">身份证<span style="color: orangered;">*</span></label>
                        <div class="col-sm-6 col-xs-6">
                            {php echo attachment_select_multi('data[pic]',$cardpic);}
                        </div>
                    </div>
                    {else}
                    <div class="form-group">
                        <label class="col-sm-2 control-label">主体名称<span style="color: orangered;">*</span></label>
                        <div class="col-sm-6 col-xs-6">
                            <input type="text" name="data[subjectname]" class="form-control" value="{$attest['subjectname']}" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">执照注册号<span style="color: orangered;">*</span></label>
                        <div class="col-sm-6 col-xs-6">
                            <input type="text" name="data[cardnum]" class="form-control" value="{$attest['cardnum']}" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">营业执照<span style="color: orangered;">*</span></label>
                        <div class="col-sm-6 col-xs-6">
                            {php echo attachment_select_multi('data[pic]',$cardpic);}
                        </div>
                    </div>
                    {/if}
                    {if $diyformid > 0}
                    {loop $list  $li}
                    <div class="form-group">
                        <label class="col-sm-2 control-label">{$li['data']['title']}</label>
                        {if $li['id'] == 'text'}
                        <div class="col-sm-6 col-xs-6">
                            <input type="text" name="newmoreinfo[{$li['key']}]" placeholder="{$li['data']['placeholder']}" class="form-control" value="{$li['val']}" />
                        </div>
                        {else if $li['id'] == 'select'}
                        <div class="col-sm-6">
                            <select name="newmoreinfo[{$li['key']}]" class="form-control chosen-select" >
                                {loop $li['data']['options'] $row}
                                <option value="{$row}" {if $li['val'] == $row}selected="selected"{/if}>{$row}</option>
                                {/loop}
                            </select>
                        </div>
                        {else if $li['id'] == 'checkbox'}
                        <div class="col-sm-9">
                            {loop $li['data']['options'] $row}
                            <label class="checkbox-inline">
                                <input type="checkbox" value="{$row}" {if in_array($row,$li['val'])} checked {/if}  name="newmoreinfo[{$li['key']}][]" />{$row}
                            </label>
                            {/loop}
                        </div>
                        {else if $li['id'] == 'img'}
                        <div class="col-sm-6 col-xs-6">
                            {php echo attachment_select_multi($li['keyinfo'],$li['val']);}
                        </div>
                        {else if $li['id'] == 'time'}
                        <div class="col-sm-9">
                            <div class="input-group">
                                {php echo tpl_form_field_date($li['keyinfo'], date('Y-m-d H:i:s', strtotime($li['val'])),true);}
                            </div>
                        </div>
                        {else if $li['id'] == 'datetime'}
                        <div class="col-sm-9">
                            {php echo tpl_select_time_info($li['keyinfo'], array('starttime'=>date('Y-m-d H:i:s',strtotime($li['val'][0])),'endtime'=>date('Y-m-d H:i:s',strtotime($li['val'][1]))));}
                        </div>
                        {else if $li['id'] == 'city'}
                        <div class="col-sm-9">
                            <div class="row row-fix js-address-selector selectArea">
                                {if $li['data']['province']}
                                <div class="col-md-3" id="tpl-province">
                                    <select name="newmoreinfo[{$li['key']}][provinceid]" data-value="{$districts['province']}" level="1" class="form-control tpl-province changeArea">
                                        {loop $province $item}
                                        <option value="{$item['id']}" {if $item['name'] == $li['val'][0]}selected="selected"{/if}>{$item['name']}</option>
                                        {/loop}
                                    </select>
                                </div>
                                {/if}
                                {if $li['data']['city']}
                                <div class="col-md-3" id="tpl-city">
                                    <select name="newmoreinfo[{$li['key']}][areaid]" data-value="{$districts['city']}" level="2"  class="form-control tpl-city changeArea">
                                        {loop $city $item}
                                        <option value="{$item['id']}" {if $item['name'] == $li['val'][1]}selected="selected"{/if}>{$item['name']}</option>
                                        {/loop}
                                    </select>
                                </div>
                                {/if}
                                {if $li['data']['area']}
                                <div class="col-md-3"  id="tpl-district">
                                    <select name="newmoreinfo[{$li['key']}][distid]" data-value="{$districts['district']}" level="3"  class="form-control tpl-district changeArea">
                                        {loop $district $item}
                                        <option value="{$item['id']}" {if $item['name'] == $li['val'][2]}selected="selected"{/if}>{$item['name']}</option>
                                        {/loop}
                                    </select>
                                </div>
                                {/if}
                            </div>
                        </div>
                        {else if $li['id'] == 'textarea'}
                        <div class="col-sm-9">
                            <textarea name="newmoreinfo[{$li['key']}]" style="width: 500px;height: 200px;"> {$li['val']} </textarea>
                        </div>
                        {/if}
                    </div>
                    {/loop}
                    {/if}
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label"></label>
                    <div class="col-sm-9">
                        <input type="hidden" name="id" value="{$id}" id="id"/>
                        <input type="submit" name="submit" value="提交" class="btn btn-primary col-lg-1" />
                        <input type="hidden" name="token" value="{$_W['token']}" />
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>




{php include wl_template('common/footer');}